# -*- coding: UTF-8 -*-
"""
@Filename:exerc3.py
@author:Cora
@time:2025-02-21
"""
sum=0
for i in range(1,11):
    n=1
    for j in range(1,i+1):
        n=j*n
    sum=sum+n
print(sum)

